#ifndef unigame_Def_h
#define unigame_Def_h

#include "Platform.h"

#if UNI_DEBUG
    #if UNI_WIN32
		#include <crtdbg.h>
        #define uni_new new(_NORMAL_BLOCK, __FILE__, __LINE__)
    #else
        #define uni_new new
    #endif
#else
    #define uni_new new
#endif

#define uni_delete(p) if(p){delete p;} p = 0;
#define uni_delete_array(p) if(p){delete[] p;} p = 0;

#define int8u char
#define int16u short
#define uint16u unsigned short
#define int32u int
#define uint32u unsigned int
#if UNI_WIN32
#define int64u long long
#define uint64u unsigned long long
#else
#define int64u long
#define uint64u unsigned long
#endif

#endif